package com.his.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

/**
 * <p>
 * 成药项记录表
 * </p>
 *
 * @author Demoon Liu
 * @since 2022-02-20
 */
@TableName("medicine_item_record")
@Schema(description = "药品处方项实体类")
public class MedicineItemRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "药品处方项id")
    private Long id;

    @Schema(description = "所属药品id")
    private Long drugid;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "所属药品处方id")
    private Long prescriptionid;

    @Schema(description = "使用频次")
    private Integer frequency;

    @Schema(description = "使用天数")
    private Long days;

    @Schema(description = "数量")
    private Long num;

    @Schema(description = "使用建议")
    private String medicaladvice;

    @Schema(description = "退药数量")
    private Long refundnum;

    @Schema(description = "使用数量")
    private Long usagenum;

    @Schema(description = "")
    private Integer usagemeans;

    @Schema(description = "当前数量")
    private Long currentnum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getDrugid() {
        return drugid;
    }

    public void setDrugid(Long drugid) {
        this.drugid = drugid;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Long getPrescriptionid() {
        return prescriptionid;
    }

    public void setPrescriptionid(Long prescriptionid) {
        this.prescriptionid = prescriptionid;
    }
    public Integer getFrequency() {
        return frequency;
    }

    public void setFrequency(Integer frequency) {
        this.frequency = frequency;
    }
    public Long getDays() {
        return days;
    }

    public void setDays(Long days) {
        this.days = days;
    }
    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }
    public String getMedicaladvice() {
        return medicaladvice;
    }

    public void setMedicaladvice(String medicaladvice) {
        this.medicaladvice = medicaladvice;
    }
    public Long getRefundnum() {
        return refundnum;
    }

    public void setRefundnum(Long refundnum) {
        this.refundnum = refundnum;
    }
    public Long getUsagenum() {
        return usagenum;
    }

    public void setUsagenum(Long usagenum) {
        this.usagenum = usagenum;
    }
    public Integer getUsagemeans() {
        return usagemeans;
    }

    public void setUsagemeans(Integer usagemeans) {
        this.usagemeans = usagemeans;
    }
    public Long getCurrentnum() {
        return currentnum;
    }

    public void setCurrentnum(Long currentnum) {
        this.currentnum = currentnum;
    }

    @Override
    public String toString() {
        return "MedicineItemRecord{" +
            "id=" + id +
            ", drugid=" + drugid +
            ", status=" + status +
            ", prescriptionid=" + prescriptionid +
            ", frequency=" + frequency +
            ", days=" + days +
            ", num=" + num +
            ", medicaladvice=" + medicaladvice +
            ", refundnum=" + refundnum +
            ", usagenum=" + usagenum +
            ", usagemeans=" + usagemeans +
            ", currentnum=" + currentnum +
        "}";
    }
}
